{extend name="layout" /}
{block name="content"}
<div class="mui-content">
	{$info.content}
	<div class="articles-footer">
		<div class="tm-label-md">
			<div class="main-content">
				<div class="tm-flex">
					<a href="Javascript:" class="tm-icon-item appshare" ajaxurl="{:url('/v2/member_share/add')}" sharedata="{ shareurl:'{:APP_URL.'/index/news/content/id/'.$info.id}', sharetitle:'{$info.title}', sharedesc:'{:str_cut($info.descrip, 100)}', sharethumb:'{:APP_URL.thumb($info.image, 80, 80)}'}" coco-callback="suc_share" typeid="5" contentid="{$info.id}">
						<div class="tm-icon">
							<img src="{$images_path}sharing-icon-green.png" alt="" width="16" height="16" />
						</div>
						<div class="tm-icon-label">
							分享文章
						</div>
					</a>
				</div>
			</div>
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
	function suc_share(obj, data) {
		coco_msg('分享成功');
		return false;
	}
	$(document).ready(function() {
		var datajson = {};
		datajson.title = '{$info.title}';
		datajson.path = 'https://sijia.test.cmsthink.com/index/news/content/id/{$info.id}';
		datajson.typeid = '5'; // 分享类型 typeid 1:登录，2:介绍建档，3：成交，4：分享海报，5：分享文章，6：分享活动
		datajson.contentid = '{$info.id}';
		console.dir(datajson);
		wx.miniProgram.postMessage({
		    data: datajson
		});
	});
</script>
{/block}